package com.hotec.PROJECT_NAME.config.mybatis;

import org.apache.ibatis.session.Configuration;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.autoconfigure.ConfigurationCustomizer;

@Component
public class MybatisConfigurationCustomizer implements ConfigurationCustomizer {

    @Override
    public void customize(Configuration configuration) {
        configuration.setMapUnderscoreToCamelCase(true);
        configuration.setObjectWrapperFactory( new MybatisObjectWrapperFactory() ) ;
    }

}
